# 根据文件路径将代码从文件中提取出来
def extract(path):
    code = ""
    with open(path, 'r', encoding='utf-8') as file:
        lines = file.readlines()
        for line in lines:
            code += line.strip()
            code += "\n"
    return code
